<?php keke_tpl_class::checkrefresh('shop/service/tpl/default/step1', '1459949689' );?><div class="release-form">
          <form class="form-horizontal" role="form" action="<?php echo $strUrl;?>&step=<?php echo $step;?>" method="post"  id="pubGoodsForm<?php echo $step;?>" name="pubGoodsForm<?php echo $step;?>">
  			<input type="hidden" name="<?php echo $step;?>" value="<?php echo $step;?>">
  			<input type="hidden" name="formhash" id="formhash" value="<?php echo FORMHASH;?>">

          <div class="form-group">
            <label class="col-sm-3 control-label">服务分类 <span class="text-danger">*</span></label>

              <div class="col-sm-3">
                  <select class="form-control" name="indus_pid" id="indus_pid" onchange="getIndustry(this.value,'indus_id')">
                     <option value="">请选择父行业</option>
                     <?php if(is_array($arrTopIndustrys)) { foreach($arrTopIndustrys as $v) { ?>
                     	<option value="<?php echo $v['indus_id'];?>" <?php if($arrPubInfo['indus_pid'] ==$v['indus_id']) { ?> selected="selected"<?php } ?>><?php echo $v['indus_name'];?></option>
                     <?php } } ?>
                   </select>
              </div>
              <div class="col-sm-3">
                <select class="form-control" name="indus_id" id="indus_id">
                     <option value="">请选择子行业</option>
                     <?php if($arrPubInfo['indus_id']) { ?>
                      <?php if(is_array($arrAllIndustrys)) { foreach($arrAllIndustrys as $v) { ?>
<option value="<?php echo $v['indus_id'];?>" <?php if($arrPubInfo['indus_id'] == $v['indus_id']) { ?> selected="selected"<?php } ?>><?php echo $v['indus_name'];?></option>
                      <?php } } ?>
                     <?php } ?>
                   </select>
              </div>
              <div class="col-sm-offset-2 col-sm-8">
                   <span class="help-block"></span>
                 </div>

          </div>
   <?php if($regionCfg['region_search_shop'] =='1') { ?>
<div class="form-group">
<label class="col-sm-3 control-label">
地区分类
<span class="text-danger"></span>
</label>
<div class="col-sm-2">
<select class="form-control" name="province" id="province" onchange="getZone(this.value,'city');">
<option value="p">选择省份</option> 
<?php if(is_array($arrProvinces)) { foreach($arrProvinces as $k => $v) { ?>
<option value="<?php echo $v['id'];?>" <?php if($arrPubInfo['province'] == $v['id']) { ?> selected="selected"<?php } ?>><?php echo $v['name'];?></option>
<?php } } ?>
</select>
</div>
<div class="col-sm-2">
<select class="form-control" name="city" id="city" onchange="getZone(this.value,'area');">
<option value="c">选择城市</option> 
<?php if(is_array($arrCities)) { foreach($arrCities as $k => $v) { ?>
<option value="<?php echo $v['id'];?>" <?php if($arrPubInfo['city'] == $v['id']) { ?> selected="selected"<?php } ?>><?php echo $v['name'];?></option>
<?php } } ?>
</select>
</div>
<div class="col-sm-2">
<select class="form-control" name="area" id="area">
<option value="a">选择区域</option> 
<?php if(is_array($arrAreas)) { foreach($arrAreas as $k => $v) { ?>
<option value="<?php echo $v['id'];?>" <?php if($arrPubInfo['area'] == $v['id']) { ?> selected="selected"<?php } ?>><?php echo $v['name'];?></option>
<?php } } ?>
</select>
</div>
</div>
<?php } ?>
          <!-- 行业分类 end -->

          <div class="form-group">
            <label for="txt_title" class="col-sm-3 control-label">服务名称 <span class="text-danger">*</span></label>
            <div class="col-sm-6">
              <input type="text" class="form-control" id="txt_title" name="txt_title" placeholder="标题名称" value="<?php echo $arrPubInfo['txt_title'];?>">
            </div>
            <div class="zhangxiaoboheha">
              <p class="form-control-static">服务标题最多50字符</p>
            </div>

          </div>
          <!-- 标题名称 end -->
<?php if($arrCustoms && $c_open =='1') { ?> <?php if(is_array($arrCustoms)) { foreach($arrCustoms as $k => $v) { ?>
<div class="form-group">
<label for="txt_title" class="col-sm-3 control-label">
<?php echo $v['f_name'];?> <?php if($v['f_required'] =='1') { ?>
<span class="text-danger">*</span>
<?php } ?>
</label>
<div class="col-sm-6">
<input type="text" class="form-control" id="<?php echo $v['f_code'];?>" name="<?php echo $v['f_code'];?>" minlength="<?php echo $v['f_min_len'];?>" placeholder="请输入<?php echo $v['f_name'];?>" value="<?php echo $arrPubInfo[$v['f_code']];?>" maxlength="<?php if($v['f_fixed_len']) { ?><?php echo $v['f_fixed_len'];?> <?php } else { ?> <?php if($v['f_max_len']) { ?><?php echo $v['f_max_len'];?><?php } else { ?>255<?php } ?><?php } ?>" >
</div>
<div class="col-sm-3">
<p class="form-control-static"><?php echo $v['f_tips'];?><?php if($v['f_fixed_len']) { ?> <?php echo $v['f_fixed_len'];?>字符<?php } else { ?> <?php if($v['f_min_len']) { ?><?php echo $v['f_min_len'];?><?php } ?><?php if($v['f_max_len']) { ?>-<?php echo $v['f_max_len'];?><?php } ?><?php if($v['f_min_len']) { ?>字符<?php } ?><?php } ?></p>
</div>
</div>
<?php } } ?> <?php } ?>
          <div class="form-group">
            <label for="tar_content" class="col-sm-3 control-label">服务描述 <span class="text-danger">*</span></label>
            <div class="col-sm-6">
              <textarea id="tar_content" name="tar_content"    placeholder="需求描述"><?php echo $arrPubInfo['tar_content'];?></textarea>
           <script type="text/javascript" src="<?php echo $_K['siteurl'];?>/static/js/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="<?php echo $_K['siteurl'];?>/static/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="<?php echo $_K['siteurl'];?>/static/js/ueditor/lang/zh-cn/zh-cn.js"></script>
 <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('tar_content', {
            //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
        	initialFrameWidth: '100%',
        	initialFrameHeight: '400'
        });
    </script>
    </div>
              <div class="zhangxiaoboheha">
              <p class="form-control-static">内容不的少于20字</p>
            </div>

          </div>
          <!-- 需求描述 end -->

          <div class="form-group">
            <label for="upload" class="col-sm-3 control-label">上传图片 </label>
            <div class="col-sm-6">
  <div id="picker">上传图片</div>
              <input type="hidden"  name="fileid1" id="fileid1"  class="form-control" value="<?php if(!empty($arrImageLists)) { ?><?php echo $arrPubInfo['fileids'];?><?php } ?>">
            </div>
             <div class="zhangxiaoboheha">
              <p class="form-control-static">最多5张图片，每张图片不得超过<?php echo $basic_config['max_size'];?>M。建议您上传 280px*280px 大小 的图片</p>
   <span class="btn red hidden" style="color:red;"  id="uploadShopImg">请上传服务图片</span>
            </div>
          </div>
          <!-- 上传附件 end -->

          <div class="form-group ">
            <div class="col-sm-offset-3 col-sm-6">
              <ul class="affix-list upload-file-list-info" id="fileList">
                            <?php if(!empty($arrImageLists)) { ?>
              <?php if(is_array($arrImageLists)) { foreach($arrImageLists as $v) { ?>
<li id="edit-<?php echo $v['file_id'];?>" class="affix-list-item">
<div class="upload-file-info">
<span class="webuploader-pick-file-close" data-fileid="<?php echo $v['file_id'];?>" data-fileurl="<?php echo $v['save_name'];?>" data-queued-id="edit-<?php echo $v['file_id'];?>"><i class="close"></i></span>
<span class="fname"><?php echo $v['file_name'];?></span>
<span class="fsize">大小:<?php echo kekezu::fsize($v['save_name']); ?></span>
<div class="clearfix"></div>
</div>
</li>
              <?php } } ?>
              <?php } ?>
              </ul>
            </div>
          </div>
          <!-- 附件列表 end -->
      <div class="form-group">
            <label for="txt_price" class="col-sm-3 control-label">服务售价 <span class="text-danger">*</span></label>
            <div class="col-sm-3">
              <div class="input-group">
                <span class="input-group-addon">￥</span>
                <input type="text" class="form-control" id="txt_price" name="txt_price" placeholder="服务售价" value="<?php echo $arrPubInfo['txt_price'];?>" onkeyup="clearstr(this);">
              </div>
        </div>
            <div class="col-sm-3">
<select name="unite_price" id="unite_price" class="form-control">
                    <?php if(is_array($arrPriceUnit)) { foreach($arrPriceUnit as $v) { ?><option value="<?php echo $v;?>" <?php if($arrPubInfo['unite_price']==$v) { ?>selected<?php } ?>>/<?php echo $v;?> </option>
                    <?php } } ?>
                </select>
            </div>

       </div>

   <div class="form-group">
            <label for="service_time" class="col-sm-3 control-label">承诺完成时间 <span class="text-danger">*</span></label>
            <div class="col-sm-3">
               <input type="text" class="form-control" id="service_time" name="service_time" placeholder="承诺完成时间" value="<?php echo $arrPubInfo['service_time'];?>" onkeyup="clearNotNum(this);">
            </div>
<div class="col-sm-3">
<select name="unit_time" id="unit_time" class="form-control">
<?php if(is_array($arrServiceUnit)) { foreach($arrServiceUnit as $v) { ?>
<option value="<?php echo $v;?>" <?php if($arrPubInfo['unite_price']==$v) { ?>selected<?php } ?>><?php echo $v;?></option>
<?php } } ?>
           		</select>
            </div>

       </div>
       <?php if($arrConfig['overdue_type']=='custom') { ?>
     <div class="form-group">
            <label for="txt_exist_day" class="col-sm-3 control-label">有效期 <span class="text-danger">*</span></label>
            <div class="col-sm-6">
              <div class="input-group date form_date ">
          <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
          <input id="txt_exist_day" name="txt_exist_day" class="form-control form_datetime" size="16" type="text" value="<?php echo $strDate;?>" placeholder="有效期"  data-date-format="yyyy-mm-dd">
        </div>
            </div>
       </div>
      <?php } ?>


          <div class="form-group">
            <div class="col-sm-offset-3 col-sm-6">
              <button type="submit" class="btn btn-primary" value="下一步">下一步</button>
            </div>
          </div>
          <!-- form-group end -->

          <div class="form-group">
            <div class="col-sm-offset-3 col-sm-6">
              <div class="checkbox">
              <label>
                <input type="checkbox" checked="checked" value="true" name="agreementchecked" id="agreementchecked"> 同意 <a href="javascript:void(0);" id="viewPubAgreement"><?php if($id==6) { ?>《作品出售协议》<?php } elseif($id==7) { ?>《服务出售协议》<?php } ?> </a>
              </label>
            </div>
            </div>
          </div>
          <!-- form-group end -->

        </form>
        <div class="release-agreement hidden">
          <div class="agreement-header">
            <h2 class="agreement-title">《服务出售协议》</h2>
          </div>
          <p>   <?php keke_loaddata_class::readtag('服务出售协议') ?> </p>
        </div>
      </div>
  		<link rel="stylesheet" type="text/css" href="static/js/webuploader/webuploader.css?r=<?php echo RANDOM_PARA;?>">
<script type="text/javascript" src="static/js/webuploader/webuploader.js?r=<?php echo RANDOM_PARA;?>"></script>
<script type="text/javascript" src="static/js/webuploader/kppw.webuploader.js?r=<?php echo RANDOM_PARA;?>"></script>
<script type="text/jscript">
$(function(){
var uploadsize = parseInt("<?php echo $basic_config['max_size'];?>");
uploadsize =  isNaN(uploadsize)? 1 : uploadsize;
$("#picker").KKUploader(
{
accept: {
extensions 		: 'jpg,jpeg,gif,png,bmp'
},
fileNumLimit		: 5,
separator			: '|',
fileSingleSizeLimit	: uploadsize*1024*1024,
listName			: "fileList",
hiddenName 			: 'fileid1'
},
{
filename 			: 'file',
fileType			: 'service'
}
);

});
</script><?php keke_tpl_class::ob_out();?>